package com.compus_help.controller.student;

import com.compus_help.common.Result;
import com.compus_help.controller.admin.adminOrderController;
import com.compus_help.entity.VO.OrderCategoryVO;
import com.compus_help.service.impl.studentOrderCategoryServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/student")
public class studentOrderCategoryController {

    private static final Logger log = LoggerFactory.getLogger(studentOrderCategoryController.class);

    @Autowired
    private studentOrderCategoryServiceImpl studentOrderCategoryService;


    @RequestMapping("/category/list")
public Result<List<OrderCategoryVO>> getOrderCategoryList() {
        List<OrderCategoryVO> orderCategoryVOList = studentOrderCategoryService.getOrderCategoryList();
        log.info("订单分类列表查询成功");
        return Result.success(orderCategoryVOList);
    }

}
